
#docker rmi -f registry:latest
docker pull registry:latest
rm -rf /cardone/docker/images/registry_latest.tar
mkdir -p /cardone/docker/images/sanjusss
docker save registry:latest > /cardone/docker/images/registry_latest.tar
#docker load < /cardone/docker/images/registry_latest.tar

#rm -rf /cardone/datas/registry

mkdir -p /cardone/datas/registry

docker stack rm cardone-registry

docker stack deploy -c /cardone/middlewares/registry/prod.yml cardone-registry

for i in {1..10}  
do  
sleep $i

docker stack ps cardone-registry

docker service ls
done


docker service logs cardone-registry_registry -f --tail 300
